package com.tang.dao;

import com.tang.bean.Book;
import com.tang.bean.Order;

import java.util.List;

public interface OrderDao {
  Integer insertOrder(Order order) throws Exception;

  Integer getOrderCount(Integer userId) throws Exception;

  List<Order> getPageItems(Integer pageBegin, Integer maxPageSize,Integer userId) throws Exception;

  Integer getOrderCountByManager() throws Exception;

  List<Order> getPageItemsByManager(Integer pageBegin, Integer maxPageSize) throws Exception;

  void changeOrderStatus(Integer orderId,Integer orderStatus) throws Exception;

  void orderCancel(Integer orderId) throws Exception;
}
